const characterManager = {
    characters: new Map(),

    createCharacter(type) {
        const character = CharacterFactory.createCharacter(type);
        this.characters.set(character.id, character);
        return character;
    },

    getCharacter(characterId) {
        return this.characters.get(characterId);
    },

    removeCharacter(characterId) {
        this.characters.delete(characterId);
    },

    updateCharacters() {
        for (const character of this.characters.values()) {
            character.updateBuffs();
        }
    }
}; 